package com.neborosoft.FlyingDog.logic;

/**
 * Project: FlyingDog
 * User: stikhonenko
 * Date: 3/6/13
 * Time: 6:09 PM
 */
public class GeneralSettings {
    private static GeneralSettings instance;

    private AudioSorting audioSorting;
    private ArtistSorting artistSorting;
    private AlbumSorting albumSorting;

    public static enum AudioSorting{
        BY_NAME,
        BY_ADDING_DATE,
        BY_ARTIST;
    }

    public static enum ArtistSorting{
        BY_NAME,
        BY_ADDING_DATE
    }

    public static enum AlbumSorting{
        BY_NAME,
        BY_ADDING_DATE,
        BY_ARTIST
    }

    public AudioSorting getAudioSorting() {
        return audioSorting;
    }

    public void setAudioSorting(AudioSorting audioSorting) {
        this.audioSorting = audioSorting;
    }

    public ArtistSorting getArtistSorting() {
        return artistSorting;
    }

    public void setArtistSorting(ArtistSorting artistSorting) {
        this.artistSorting = artistSorting;
    }

    public AlbumSorting getAlbumSorting() {
        return albumSorting;
    }

    public void setAlbumSorting(AlbumSorting albumSorting) {
        this.albumSorting = albumSorting;
    }

    public GeneralSettings getInstance(){
        if(instance == null){
            instance = new GeneralSettings();
        }

        return instance;
    }
}
